﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ElectronicsMarket_Desktop
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void mnuDangNhap_Click(object sender, EventArgs e)
        {
            frmDangNhap frmdangnhap = new frmDangNhap();
            //frmdangnhap.MdiParent = this;
            frmdangnhap.ShowDialog();
        }

        private void mnuChucNang_TimKiem_Click(object sender, EventArgs e)
        {
            frmBaoCaoTonKho frmtonkho = new frmBaoCaoTonKho();
            frmtonkho.MdiParent = this;
            frmtonkho.Show();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
           
        }

        private void mnuChucNang_Click(object sender, EventArgs e)
        {

        }

        private void mnuHeThong_QuanLiHoaDon_Click(object sender, EventArgs e)
        {
            frmPhieuNhap frmphieunhap = new frmPhieuNhap();
            frmphieunhap.MdiParent = this;
            frmphieunhap.Show();
        }

        private void mnuHeThong_QuanLiSanPham_Click(object sender, EventArgs e)
        {
            frmQuanLyHangHoa frmhanhoa = new frmQuanLyHangHoa();
            frmhanhoa.MdiParent = this;
            frmhanhoa.Show();
        }

        private void mnuChucNang_PhanQuyen_Click(object sender, EventArgs e)
        {
            frmBaoCaoDatHang frmbaocao = new frmBaoCaoDatHang();
            frmbaocao.MdiParent = this;
            frmbaocao.Show();
        }

        private void frmMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            Application.Exit();
        }

        private void mnuquanlinhanvien_Click(object sender, EventArgs e)
        {
            frmNhanVien frmnhanvien = new frmNhanVien();
            frmnhanvien.MdiParent = this;
            frmnhanvien.Show();
        }

        private void mnudonhang_Click(object sender, EventArgs e)
        {
            frmDonHang frmdonhang = new frmDonHang();
            frmdonhang.MdiParent = this;
            frmdonhang.Show();
        }

        private void mnuquangcao_Click(object sender, EventArgs e)
        {
            frmQuangCao frmquangcao = new frmQuangCao();
            frmquangcao.MdiParent = this;
            frmquangcao.Show();
        }

        private void mnuChucNang_ThongKe_Click(object sender, EventArgs e)
        {
            frmThongKe frmthongke = new frmThongKe();
            frmthongke.MdiParent = this;
            frmthongke.Show();
        }

        private void mnuHeThong_QuanLiKhoHang_Click(object sender, EventArgs e)
        {

        }

        private void mnudn_Click(object sender, EventArgs e)
        {
           
        }

        private void mnudangxuat_Click(object sender, EventArgs e)
        {
            mnuChucNang.Enabled = false;
            mnuHeThong.Enabled = false;
            mnudn.Enabled = true;
        }

    }
}
